package com.xiumiing.net.base.net.util;


/**
 * @author Created by Jeff
 * on 2019/5/27.
 * des: 接口错误提示
 */
public class HttpErrorPrompt {

    /**
     * 成功
     */
    public final static int SUCCESS = 0;
    /**
     * 该账号未注册
     */
    public final static int UN_REGISTERED = 1004;
    /**
     * 昵称已被使用！
     */
    public final static int NICKNAME_USED = 1005;
    /**
     * 密码错误
     */
    public final static int PASSWORD_WRONG = 1006;
    /**
     * 未设置初始密码
     */
    public final static int PASSWORD_UN_SET = 1007;
    /**
     * 昵称不合法！
     */
    public final static int PASSWORD_ILLEGAL = 2001;
    /**
     * 昵称中包含敏感词汇
     */
    public final static int NICKNAME_SENSITIVE_WORD = 2002;
    /**
     * 分享内容已失效,无法访问
     */
    public final static int SHARE_EXPIRED = 406;

    /**
     * 账号已在异端登录,无法访问
     */
    public final static int OTHER_LOGIN = 407;

    /**
     * 401	token认证失败
     */
    public final static int TOKEN_AUTHENTICATION_FAILED = 401;
    /**
     * token认证过期
     */
    public final static int TOKEN_AUTHENTICATION_EXPIRED = 409;
    /**
     * 参数传入异常
     */
    public final static int PARAMETER_EXCEPTION = 400;
    /**
     * 服务器异常
     */
    public final static int SERVER_EXCEPTION = 500;
    /**
     * 请求路径无效
     */
    public final static int REQUEST_PATH_INVALID = 405;
    /**
     * imei is empty
     */
    public final static int IMEI_IS_EMPTY = 1008;
    /**
     * 该账号未填写资料
     */
    public final static int UN_FILLED_IN_INFORMATION = 1002;
    /**
     * 请求失败
     */
    public final static int FAILED_RESULT = -1;
    /**
     * 黑名单不允许登录
     */
    public final static int LOGIN_BLACKLIST_CODE = -1;

    /**
     * 接口错误提示
     *
     * @param errorCode 错误码
     * @param errorMsg  错误信息
     */
    public static void errorPrompt(int errorCode, String errorMsg) {

    }
}
